package cn.bdqn.sshaction;

import java.util.Date;
import java.util.List;

import cn.bdqn.entity.User;

import com.opensymphony.xwork2.ActionSupport;

//数组的
public class ArrayDataAction extends ActionSupport{

	//定义数组
	private Double[] numbers;
	//或者初始化 private Double[] numbers = new Double[3];

	//list
	private List<String> hobbies;
	
	//复杂 List<User>
	private List<User> users;
	
	//日期类型
	private Date timeData;
	
	public Date getTimeData() {
		return timeData;
	}

	public void setTimeData(Date timeData) {
		this.timeData = timeData;
	}

	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	public List<String> getHobbies() {
		return hobbies;
	}

	public void setHobbies(List<String> hobbies) {
		this.hobbies = hobbies;
	}

	public Double[] getNumbers() {
		return numbers;
	}

	public void setNumbers(Double[] numbers) {
		this.numbers = numbers;
	}
	
	//什么都不做，就看前端如何通过表单把数据流入进来
	@Override
	public String execute(){
		
		return "success";
	}
}
